/**
 * 人才类型
 */
const { v4: uuidv4 } = require('uuid');

module.exports = {

  up: async queryInterface => {
    const names = ['科技型人才', '金融型人才', '创业辅导型人才', '其他'];
    const talentClassficationList = names.map((item, index) => ({
      id: index + 1,
      uuid: uuidv4(),
      typeName: item, // 分类名称
      typeDescription: '', // 备注说明
      createdAt: new Date(),
      updatedAt: new Date(),
    }));

    await queryInterface.bulkInsert('talent_classfication', talentClassficationList, {});
  },

  down: async queryInterface => {

    await queryInterface.bulkDelete('talent_classfication', null, {});

  }
};
